package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("操作日志实体")
@TableName("log_action")
public class LogAction implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "")
    private Long id;

    @ApiModelProperty(value = "")
    private Long aId;

    @ApiModelProperty(value = "模块")
    private String module;

    @ApiModelProperty(value = "控制器")
    private String controller;

    @ApiModelProperty(value = "方法")
    private String action;

    @ApiModelProperty(value = "描述")
    private String intro;

    @ApiModelProperty(value = "用户id")
    private Long uid;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "模块下系统id")
    @TableField("aid")
    private Long sys_aid;

    @ApiModelProperty(value = "请求真实IP")
    private String ip;

    @ApiModelProperty(value = "参数")
    private String params;

    @ApiModelProperty(value = "结果")
    private String result;

    @ApiModelProperty(value = "")
    private Long createTime;

}